Conversation
Owner
Author
$ docker-compose exec db bash
bash-5.0# psql -U postgres
psql (12.4)
Type "help" for help.
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+------------+------------+-----------------------
postgres | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 |
template0 | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 | =c/postgres +
| | | | | postgres=CTc/postgres
testdb | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 |
(4 rows)
postgres=# create database test;
CREATE DATABASE
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+------------+------------+-----------------------
postgres | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 |
template0 | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 | =c/postgres +
| | | | | postgres=CTc/postgres
test | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 |
testdb | postgres | UTF8 | ja_JP.utf8 | ja_JP.utf8 |
(5 rows)
postgres=# (DBに接続し、 |
Owner
Author
|
app と db コンテナ間の接続は、別PRつくってからやる |
Owner
Author
|
↑↑を、新PR #18 で着手 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
現状では、ローカル開発環境(macOS)において、 'docker-compose up' でのPostgresコンテナ起動が失敗するケースが発生しているため、これを解決する
では問題なくビルド成功しているので、ローカルでも起動できるよう微修正を加えていく
上記事情があるため、既存ファイルにはなるべく手をつけず(最小限の修正で)解決できるよう改善実装する
参考
リポジトリ miolab/psql_docker_sandbox#2 で検証完了しており、こちらの実装結果をもとに進めていく